package org.llama.jmex.terra;

import org.llama.jmex.task.Task;

public abstract class TerraLoadTextureTask extends Task{

	protected TerraView view;
	protected XYKey xy;
	
	// an id to track this TerraintextureTask 
	protected int taskId;
	
	public TerraLoadTextureTask(int taskId, TerraView view, XYKey xy) {
		this.taskId = taskId;
		this.view = view;
		this.xy = xy;
		updatePriority();
	}
	
	public int getTaskId() {
		return taskId;
	}

	public void updatePriority() {
		this.setPriority(view.getPriority(xy));
	}

	public Object identifier() {
		return xy;
	}

	
}
